import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";

export class PageVo {
    // 页码
    @ApiProperty({ example: "1", description: "页码" })
    @IsNotEmpty({ message: "页码不能为空" })
    page: number

    // 每页限制条数
    @ApiProperty({ example: "10", description: "每页限制条数" })
    @IsNotEmpty({ message: "每页限制条数不能为空" })
    size: number
}